﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="info_map_detail.aspx.cs" Inherits="admin_infomation_info_map_detail"  validateRequest=false %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>    
	<head>
		<title>
			地图信息
		</title>
		<link href="../css/default.css" rel="stylesheet" type="text/css" />
		<script src="../js/jUtility.js" type="text/javascript"></script>
		<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>
		<script type="text/javascript">
        window.onload = function() {
            if (document.getElementById("txtmapcontent")) {
                var fck = new FCKeditor('txtmapcontent');
                fck.BasePath = "../../fckeditor/";
                fck.ToolbarSet = 'Basic';
                fck.Width = "99%";
                fck.Height = "400px"
                fck.ReplaceTextarea();
            }

            //initTextarea("concact");
        }
        </script>
	</head>

	<body>
		<table width="100%" height="570" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">

			<tr>
				<td height="414" align="left" valign="top" class="rightbg">
								<form id="form1" method="post" runat="server">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="2" bgcolor="#A49B81"></td>
									</tr>
									<tr>
										<td height="25" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat:repeat-y; background-position:left; padding-left:6px; padding-top:3px;">
											<asp:Label ID="headers" runat="server" />
										</td>
									</tr>
									<tr>
										<td height="1" bgcolor="#B0C9E8"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="16"></td>
						</tr>
						<tr>
							<td height="16"></td>
						</tr>
						<tr>
							<td align="left" valign="top" style="padding-left:10px;">
									<table width="95%"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">

										<tr>
											<td width="100%" valign="top">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<th align="left" width="80%">
															<asp:Label ID="infoname" runat="server"></asp:Label>
														</th>
														<th align="left">
															<a href="info_map_list.aspx?layerid=<%=Layerid %>&aid=<%=Request.Params["aid"]%>">
																返回
															</a>
														</th>
													</tr>
												</table>
												<br>
												<table width="100%" border="0">
													<tr>
														<td width="13%" align="right"><font color="#FF0000">*</font>区域名称：</td>
														<td width="2%"></td>
														<td width="85%">
                                                            <asp:TextBox ID="txtmapname" runat="server" Columns="50"></asp:TextBox>
                                                                        </td>
													</tr>
													<tr>
														<td width="13%" align="right"><font color="#FF0000">*</font>区域坐标：</td>
														<td width="2%"></td>
														<td width="85%">
                                                            <asp:TextBox ID="txtmaplat" runat="server" Columns="50"></asp:TextBox>
                                                                        </td>
													</tr>
													<tr runat="server" id="log">
														<td align="right"><font color="#FF0000">*</font>跳转URL：</td>
														<td></td>
														<td>
                                                            <asp:TextBox ID="txtmaplog" runat="server" Columns="50"></asp:TextBox>
                                                                        </td>
													</tr>
													<tr>
														<td align="right"><font color="#FF0000">*</font>排序号：</td>
														<td></td>
														<td>
                                                            <asp:TextBox ID="ordernum" runat="server" Columns="50"></asp:TextBox>
                                                                        </td>
													</tr>
												<tr id="imglisttr" runat="server" >
														<td align="right"><font color="#FF0000">*</font>内容：</td>
														<td></td>
														<td>
                                                            <asp:TextBox ID="txtmapcontent" runat="server" TextMode="MultiLine" Rows="7" Columns="50"></asp:TextBox>
                                                                        </td>
													</tr>
													<tr >
													    <td colspan="3" align="center">
													        <table width="100%">
													            <tr>
														            <td align="right" width="13%" id="state" runat="server"><font color="#FF0000">*</font>状态：</td>
														            <td  width="2%"></td>
														            <td  width="85%">
                                                                        <asp:RadioButton ID="RadioButton1" runat="server" GroupName="state" Text="发布" />
                                                                        <asp:RadioButton ID="RadioButton2" runat="server" GroupName="state" 
                                                                            Text="不发布" />
                                                                                    </td>
														        </tr>
														    </table>
														</td>
													</tr>																									
												</table>
												<table width="100%" border="0">
													<tr>
														<td height="54" colspan="3" align="center">
														    <asp:Button ID="Button" runat="server" Text="提交" onclick="Button_Click" />
                                                        </td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
							</td>
						</tr>
						<tr>
							<td>&nbsp;
								<div style="padding-left:20px;">
		</div>
							</td>
						</tr>
					</table>
								</form>
				</td>
			</tr>
		</table>
		
		<script type="text/javascript"> 

		var o;
		
		function subfunc() {
			if(!isFilled(form1.img_name)){
				return warning('img_name','图片名称不能为空!');
			}
			
			
			if(form1.img_file_name.value == ""){
				alert("请上传图片!");
				//form1.img_file_name.focus();
				return false;
			}
			
			
			return true;	
		}
		function warning(FieldName,WarningString){
				alert(WarningString);
				eval("form1." + FieldName + ".focus();");
				return(false);
		}

		</script>

	</body>
</html>
